<?
#
# author: Cody Sorgenfrey with Jason Sanchez
# (c) 2012 Casa De Bendicion
#

include_once("common.php");

$title= "Contact";
$metaKey=null;
$metaDesc="Contacts at the Orphanage in Bachiniva Mexico.";
$moreHtml=null;
$moreJava=null;

startPage($title, $metaKey, $metaDesc, $moreHtml, $moreJava, $title);

printFacebookBanner();

connectSelectTest("contacts");

$result = mysql_query("SELECT * FROM `contacts` ORDER BY `order` ASC");

while ($contact = mysql_fetch_array($result)) {

	$paragraph .= "<h2>".$contact['name']."...</h2><p style='margin-top:-10px;'>";
	if ($contact['address']) $paragraph .= "address: ".$contact['address']."<br>";
	$paragraph .= "email: <a id='onBlue' href='mailto:".$contact['email']."'>".$contact['email']."</a><br>phone: ".$contact['phone'];
	if ($contact['facebook']) $paragraph .= "<br>facebook: <a id='onBlue' href='".$contact['facebook']."' target='_blank'>".$contact['facebook']."</a>";
	$paragraph .= "<br><br>";

}

$first = mainBox($paragraph, "autoBox", "0px;");

$second = mailingBox("0px", "beliefs.php");

$third = "<div style='height:5px; width:705px;'></div>";

$fourth = "<div style='height:5px; width:250px;'></div>";

printPageTable($first, $second, $third, $fourth);

endPage();

?>